#include "basewidget.h"
#include <QMainWindow>
#include <QMenuBar>
BaseWidget::BaseWidget(QWidget *parent) :
    QWidget(parent)
{    
    if(parent)
    {
        QMainWindow * w=qobject_cast<QMainWindow*>(parent);
        if(w)
        {
            resize(w->centralWidget()->width(),w->centralWidget()->height());
            move(0,w->menuBar()->height());
        }
    }
}
